mongo_url = "mongodb://localhost:27017/"


########################################################################################################
# 东方财富 网列表地址 page = "https://quote.eastmoney.com/center/gridlist.html#hs_a_board" 东方财富
stocks_url = "https://56.push2.eastmoney.com/api/qt/clist/get?cb=jQuery1124007652858930569773_1728464031496&pn=%s&pz=40&po=0&np=1&ut=bd1d9ddb04089700cf9c27f6f7426281&fltt=2&invt=2&dect=1&wbp2u=|0|0|0|web&fid=f12&fs=m:0+t:6,m:0+t:80,m:1+t:2,m:1+t:23,m:0+t:81+s:2048&fields=f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f22,f11,f62,f128,f136,f115,f152&_=1728464032292"

# 东方财富股票详情页 https://wap.eastmoney.com/quote/stock/0.300427.html
stock_day_line_url = "http://push2his.eastmoney.com/api/qt/stock/kline/get?secid=%s&klt=101&fqt=1&lmt=%s&end=20500000&iscca=1&fields1=f1,f2,f3,f4,f5,f6,f7,f8&fields2=f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64&forcect=1"

# 核心题材 page = "https://emh5.eastmoney.com/html/?fc=30042702&color=w#/hxtc"
hxtc_url = 'https://datacenter.eastmoney.com/securities/api/data/v1/get?reportName=RPT_F10_CORETHEME_BOARDTYPE&columns=SECUCODE,SECURITY_CODE,SECURITY_NAME_ABBR,NEW_BOARD_CODE,BOARD_NAME,SELECTED_BOARD_REASON,IS_PRECISE,BOARD_RANK,BOARD_YIELD,DERIVE_BOARD_CODE&quoteColumns=f3~05~NEW_BOARD_CODE~BOARD_YIELD&filter=(SECUCODE="%s.%s")(IS_PRECISE="1")&client=APP&source=SECURITIES&pageNumber=1&pageSize=200&sortTypes=1&sortColumns=BOARD_RANK'

# 公司数据
gssj_url = 'https://datacenter.eastmoney.com/securities/api/data/v1/get?reportName=RPT_DMSK_NEWINDICATOR&columns=SECUCODE,SECURITY_CODE,ORG_CODE,SECURITY_NAME_ABBR,EPS,BVPS,TOTAL_OPERATE_INCOME,OPERATE_INCOME_RATIO,NETPROFIT,NETPROFIT_RATIO,GROSS_PROFIT_RATIO,NPR,ROE,DEBT,CAPITAL_ADEQUACY_RATIO,NPL,ALLOWANCE_NPL,COMMNREVE,COMMNREVE_YOY,EARNED_PREMIUM,COMPENSATE_EXPENSE,SURRENDER_RATE_LIFE,SOLVENCY_AR,RESEARCH_EXPENSE,RSEXPENSE_RATIO,RESEARCH_NUM,RESEARCH_NUM_RATIO,TOTAL_SHARES,A_SHARES_EQUITY,FREE_A_SHARES,PLEDGE_RATIO,GOODWILL,CDR_SHARE,CDR_CONVERT_RATIO,MARKETCAP_A,B_SHARES_EQUITY,MARKETCAP_B,FREE_B_SHARES,B_UNIT,SECURITYTYPE,TRADEMARKET,DATE_TYPE,IS_PROFIT,ORG_TYPE,IS_VOTE_DIFF,LISTING_STATE,PE_DYNAMIC_SOURCE,PB_NOTICE_SOURCE,EPS_SOURCE,BVPS_SOURCE,TOI_SOURCE,OIR_SOURCE,NETPROFIT_SOURCE,NETPROFIT_RATIO_SOURCE,GPR_SOURCE,NPR_SOURCE,ROE_SOURCE,DEBT_SOURCE,NPL_SOURCE,ALLOWANCE_NPL_SOURCE,CAR_SOURCE,COMMNREVE_SOURCE,COMMNREVE_YOY_SOURCE,EARNED_PREMIUM_SOURCE,COMPENSATE_EXPENSE_SOURCE,SRL_SOURCE,SOLVENCY_AR_SOURCE,RESEARCH_EXPENSE_SOURCE,RSEXPENSE_RATIO_SOURCE,RESEARCH_NUM_SOURCE,RNR_SOURCE,TOTAL_SHARES_SOURCE,TMC_SOURCE,CDR_SHARE_SOURCE,CCR_SOURCE,ASE_SOURCE,FAS_SOURCE,MCFA_SOURCE,PLEDGE_RATIO_SOURCE,MCA_SOURCE,GOODWILL_SOURCE,BSE_SOURCE,MCB_SOURCE,FBS_SOURCE,MCFB_SOURCE,EQUITY_NEW_REPORT,DIVIDEND_RATIO,DIVIDEND_PAY_RATIO,DIVIDEND_RATIO_EXPLAIN,DIVIDEND_PAY_RATIO_EXPLAIN&quoteColumns=f9~01~SECURITY_CODE~PE_DYNAMIC,f23~01~SECURITY_CODE~PB_NEW_NOTICE,f20~01~SECURITY_CODE~TOTAL_MARKET_CAP,f21~01~SECURITY_CODE~MARKETCAP_FREE_B,f114~01~SECURITY_CODE~PE_STATIC,f115~01~SECURITY_CODE~PE_TTM,f21~01~SECURITY_CODE~MARKETCAP_FREE_A,f2~01~SECURITY_CODE~f2,f18~01~SECURITY_CODE~f18&filter=(SECUCODE="%s.%s")&pageNumber=1&pageSize=200'

ths_url = "http://basic.10jqka.com.cn/api/stockph/conceptdetail/%s/"

stock_one_snow_url = "http://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=%s&begin=%s&period=1m&type=before&count=-241&indicator=kline,pe,pb,ps,pcf,market_capital,agt,ggt,balance"

llo = ['融资融券', '转融券标的', '标普道琼斯A股', 'MSCI概念', '沪股通', '深股通', '同花顺漂亮100']

lei = ['北讯退', '康得退', '欧浦退', '葛洲坝', '营口港', '退市刚泰', '退市工新', '退市秋林', "天方药业", "神城A退", "PT金田A", "*ST石化A", "PT中浩A", "招商地产", "新都退", "ST中侨", "ST鑫光", "大明退市", "ST五环", "小天鹅A", "琼民源", "烯碳退", "攀渝钛业", "白云山A", "美的电器", "*ST猴王", "TCL通讯", "S湘火炬", "PT南洋", "宏源证券", "长城股份", "盐湖集团", "S*ST托普", "PT粤金曼", "国恒退", "金马集团", "吉化退市", "*ST比特", "ST九州", "ST海洋", "*ST南华", "ST银山", "ST宏业", "华泽退", "S*ST佳纸", "*ST环保", "长城信息", "锦化退市", "*ST华信", "*ST大菲", "*ST创智", "*ST炎黄", "辽油退市", "*ST长兴", "*ST龙涤", "扬子退市", "华北高速", "中原退市", "中弘退", "华信退", "众和退", "印纪退", "天宝退", "雏鹰退", "天茂退", "龙力退", "长生退", "金亚退", "盛运退", "乐视退", "神雾退", "大华农", "千山退", "欣泰退", "暴风退", "邯郸钢铁", "齐鲁石化", "ST东北高", "武钢股份", "*ST联谊", "退市银鸽", "退市保千", "退市长油", "S*ST精密", "莱钢股份", "退市美都",
       "*ST云大", "S山东铝", "退市华业", "天方药业", "路桥建设", "外运发展", "S*ST国瓷", "S兰铝", "承德钒钛", "退市海润", "退市吉恩", "包头铝业", "太行水泥", "*ST上航", "上实医药", "PT水仙", "上电股份", "百联股份", "华联商厦", "ST国嘉", "退市博元", "*ST花雕", "*ST鞍成", "*ST斯达", "*ST华圣", "*ST上普", "*ST数码", "ST生态", "退市大控", "*ST哈慈", "S*ST金荔", "S*ST龙昌", "东方锅炉", "*ST达曼", "*ST龙科", "退市昆机", "ST鞍一工", "东方明珠", "新湖创业", "中西药业", "*ST中川", "*ST北科", "*ST信联", "广汽长丰", "*ST二重", "中国北车", "退市锐电", '盛泰集团', '上药转换', '中西药业', '新湖创业', '东方锅炉', '华联商厦', '百联股份', '上电股份', 'PT水仙', '上实医药', '太行水泥', '包头铝业', '承德钒钛', 'S兰铝', 'S山东铝', '齐鲁石化', '邯郸钢铁', '丽臣实业', '华尔泰', '华瓷股份', '中原油气', '扬子石化', '辽河油田', '锦州石化', '吉林化工', 'PT粤金曼', '盐湖集团', '长城股份', 'PT南洋', 'S湘火炬', 'TCL通讯', '琼民源A', '石油大明', 'PT中浩A', 'PT金田A', '攀渝钛业']
########################################################################################################

headers_list = [
    "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1623.0 Safari/537.36",
    "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; Zune 4.7)",
    "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0",
    "Opera/9.80 (X11; Linux x86_64; U; Ubuntu/10.10 (maverick); pl) Presto/2.7.62 Version/11.01",
    "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; it-it) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27",
    "Mozilla/5.0 (Windows x86; rv:19.0) Gecko/20100101 Firefox/19.0",
    "Mozilla/5.0 (Windows NT 4.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36",
    "Mozilla/5.0 (Microsoft Windows NT 6.2.9200.0); rv:22.0) Gecko/20130405 Firefox/22.0",
    "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36",
    "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36",
    'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36',
    'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36',
    'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36',
    'Mozilla/5.0 (X11; CrOS i686 3912.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36',
    'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0.6',
    'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36',
    'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2224.3 Safari/537.36',
    'Mozilla/5.0 (X11; CrOS i686 3912.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36'
]

cookies = [
       'xq_a_token=220b0abef0fac476d076c9f7a3938b7edac35f48; xqat=220b0abef0fac476d076c9f7a3938b7edac35f48; xq_r_token=a57f65f14670a8897031b7c4f10ea42a50894850; xq_id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1aWQiOi0xLCJpc3MiOiJ1YyIsImV4cCI6MTczNTY5Mjg4OSwiY3RtIjoxNzMzNDY5NDk2MTUyLCJjaWQiOiJkOWQwbjRBWnVwIn0.Iz9FHXWupCRBQLQ2QYzd7xvK0jxVM-QFahXyf6D5hvN3COgPvEyNkFaK3auajvfJkUljNusI5ONYKqk2T0dxWJIwo5mpz4ehqeZrlwDPZIBTMzs6sJUXxjnRZAQUDgEXTXr8kcN7fcSK-hUQoSjm4Jo-uvlwhaR6gBQE8d0tmLzPmHO7pCYZfQ3c95eiQAikKj7UiV2NhPBrwpM8-9v9ZrCGBEF4EmKMHoKgzx81Rm0c-IKKU4cD3Il-36y-HMHywIy4_WSEDkrhvDG19t_-Fb9YI9xk3vXNOSTh_tBh26VyeTvoHsicO8KM6v-KyZvjIiiQjntel7z4-Bvk9fu7lw; cookiesu=181733469535934; u=181733469535934; Hm_lvt_1db88642e346389874251b5a1eded6e3=1733469536; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1733469536; HMACCOUNT=ADFBE61418719F17; device_id=082925264e849458d855243112b005b2; ssxmod_itna=YqjhYvqfxAxUxDqxBcDB4ntIG7CGO/7iW/YKevtABDBwTO4iNDnD8x7YDvIjOD0xbPYqWDrh+FKVngxmFdYl+2D56YB03QYQ8PSHpoD84i7DKqibDCqD1D3qDkTDqYY1Dt4DTD34DYDihtDGTiBCqDFSutZlTQy7wQBSqDECT=DYu=DmkTDnrr4=jN2/YrDfb=DITiyQqGnD0QH1MR/D0f=TcaDzT=DbEpM91HDtTncQu4D5jiyl1+Nz3Soe8D0b+wNBBvq7D4T774iGGq4/gCAo5+sCB5tBYCtAzzYDD39vG+NeD===; ssxmod_itna2=YqjhYvqfxAxUxDqxBcDB4ntIG7CGO/7iW/YKevtYD8wpqD55D/7GKDFhgDNIKf5UN0KQkD0N3nrAKN4YE=bYQhif2xyGChIg0hiz+IEiOQhsQ/Pidsg34v8tkOQqKFc5PfAFtleeFm502xqv=u50=yQy2xbAcHkAhA8V2c1Y8oCP39mhZAIKtoaq6YCV20zDEKInESFAPyG4c8+KKdzKf3F+gf6y6afc/x5uCdLPVkUBGe6BRPiD2xOuD1NQGFcCiGnKoQ=TUEm4wZRTa3UAFfwWHt5+Du+VEipn2DFtBErgBxN8kcfg7DMSDYw5w+7L4oaxOY8HPoFYxzS453GKy8dFlqZOTNnKxhdBEia4hsBd3gqVkDsxoNerD2KPTofOTVwqlYtaSh4QrM+tLfiBoQ0qNLxP42+7xYuqO0xTmkau+1twoQ8hZbwjMpFO+76fqMCkh7Z2hbPd303z1NwaOjlCM8LpqIaTGeMxBYQnYKVODkfPD7QN7GPxmqYhzDhAgDxuxjWBVnAAxx+cAMf6M4mwmmPc7dHBqX53TGb4YzWGejOCYS9QG/h7DjKDeu3wiu3FDD=='
]

ips_list = [
       {'http': 'http://147.78.243.134:8080'},
       {'http': 'http://51.89.255.67:80'},
       {'http': 'http://51.222.161.115:8080'},
       {'http': 'http://130.162.148.105:8080'},
       {'http': 'http://94.247.129.244:3128'},
       {'http': 'http://141.98.153.86:80'},
]